package edu.sctu.practice.class02.hujie.cgs.assign03.Three;
//表示人

/**
 * Created by hj on 2015/11/5.
 */
public class Name implements Cloneable {
    String firstName;
    String middlName;
    String lastName;

    public Name(String f, String m, String l) {
        firstName = f;
        middlName = m;
        lastName = l;
    }

    public String getFullname() {
        String s = firstName + "" + middlName + "" + lastName;
        return s;
    }

    public void setFirstname(String s) {
        firstName = s;
    }

    public void setMi(String s) {
        middlName = s;
    }

    public void setLastName(String s) {
        lastName = s;
    }

    public Object clone() {
        Object o = null;
        try {
            o = (Name) super.clone();
        } catch (CloneNotSupportedException ex) {
            return null;
        }
        return o;
    }
}
